//
// Created by Administrator on 2019/12/10.
//

#ifndef CPPDEMO_FRUIT_H
#define CPPDEMO_FRUIT_H

#include <iostream>
#include <string>

using namespace std;

class Fruit {
public:
    Fruit() : name(""){};

    explicit Fruit(const string &n);

    Fruit operator+(const Fruit &other);

    string getName();

    Fruit(const Fruit& f);

    virtual void eat();
private:
    string name;
};
#endif //CPPDEMO_FRUIT_H
